package com.xzx.framework.util.email;
/**
 * 邮件发送线程
* @ClassName: Sending    
* @Description:     
* @author xzx   
* @date 2017年12月29日 下午5:17:51    
*
 */
public class Sending implements Runnable{

    private String to;    //收件人
    private String subject;    //主题
    private String content;    //内容
    private String fileStr;    //附件路径

    public Sending(String to, String subject, String content, String fileStr) {
        this.to = to;
        this.subject = subject;
        this.content = content;
        this.fileStr = fileStr;
    }

    public void run() {
        SendEmailUtil sendEmail = new SendEmailUtil(to, subject, content, fileStr);
        sendEmail.send();
    }

}
